package com.kumi.core.web.fore;

import com.kumi.core.domain.Site;
import com.kumi.core.service.SiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2016/9/19 0019.
 */
@Controller
public class NodeController {
    @RequestMapping(value = "index")
    public String index() {
//        siteResolver.resolveSite(siteNumber);
        Site site =siteService.findByNumber("1");
        System.out.println("site:"+site);
        return "index";
    }

    /**
     *
     */
    @Autowired
    private SiteService siteService;
}
